public class ConstructorDemo{
int width,length,height;
public ConstructorDemo(int a){
width=a;length=a;height=a;
}
public ConstructorDemo(int a,int b){
	   width=a;length=a;height=b;
}
public ConstructorDemo(int a,int b,int c){
width=a;length=b;height=c;
}
public int volume(){
return width*length*height;
}
public void display(){
System.out.println("The box volume is : "+this.volume());
}
public static void main(String args[]){
	  ConstructorDemo c1,c2,c3;
	  c1=new ConstructorDemo(5);  c1.display();
	  c2=new ConstructorDemo(5,6);	  c2.display();
	  c3=new ConstructorDemo(5,6,7);  c3.display();
}
}